package 继承.练习;

public class 测试类 {
    public static void main(String[] args) {
        Manager mana = new Manager("001","李四",10000,500);
        Cook cok = new Cook("002","赵六",5000);
        System.out.println(mana.getName()+","+mana.getId()+","+mana.getSalary());
        System.out.println(cok.getName()+','+cok.getId()+','+cok.getSalary());
    }
}
